package com.huhu.dao;

import com.huhu.pojo.Person;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface PersonMapper {
    //匿名内部类
    /*
    public class testMap extends PersonMapper(){
    }
    PersonMapper mapper = new testMap();
     */



    int deleteByPrimaryKey(String name);

    int insert(Person record);

    int insertSelective(Person record);

    Person selectByPrimaryKey(String name);

    int updateByPrimaryKeySelective(Person record);

    int updateByPrimaryKey(Person record);

    List<Person> selectAllPerson();
}